using System.Collections.Generic;
using System.Web.Mvc;

namespace etcetera.Mvc.UI.Calendar
{
    public static class CalendarExtensions
    {
        /// <summary>
        /// Renders a <table> based Calendar.
        /// </summary>
        /// <param name="helper">The HTML helper.</param>
        /// <param name="year">The year.</param>
        /// <param name="month">The month.</param>
        /// <returns></returns>
        public static ICalendar Calendar(this HtmlHelper helper, int year, int month)
        {
            return new Calendar(year, month);
        }

        /// <summary>
        /// Renders a <table> based Calendar.
        /// </summary>
        /// <param name="helper">The HTML helper.</param>
        /// <param name="year">The year.</param>
        /// <param name="month">The month.</param>
        /// <param name="htmlAttributes">The HTML attributes.</param>
        /// <returns></returns>
        public static ICalendar Calendar(this HtmlHelper helper, int year, int month, IDictionary<string, object> htmlAttributes)
        {
            return new Calendar(year, month, htmlAttributes);
        }
    }
}